<?php
include "conn.php";
$userid = $_POST['userid'];
$bookid = $_POST['bookid'];
$main = new main();
$a['result'] = $main->insertbook($userid,$bookid);
$a['result1'] = $main->updatekucun($bookid);
echo json_encode($a);
